<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <button id="start-ws">
        开启ws
    </button>

    <script>

        const ws = new WebSocket("ws://localhost:8999")

        var startWs = document.getElementById("#start-ws");
        startWs.c

    </script>

</body>

</html>